package com.whmnx.main.ui.adapter;

import android.content.Context;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.widget.Button;
import android.widget.EditText;

import com.classic.adapter.BaseAdapterHelper;
import com.classic.adapter.CommonRecyclerAdapter;
import com.whmnx.base.bean.ProductBean;
import com.whmnx.main.R;
import com.whmnx.main.ui.model.CommodityModel;

/**
 * author : huang
 * date   : 2020/10/14 0014 17:00
 * version: 1.0
 * @author Administrator
 */
public class SpceAdapter extends CommonRecyclerAdapter<ProductBean.SpecModelBean> {

    public SpceAdapter(Context context) {
        super(context, R.layout.item_job_work);
    }


    @Override
    public void onUpdate(BaseAdapterHelper helper, ProductBean.SpecModelBean item, int position) {
        helper.setText(R.id.tv, (String) item.ProductSPEC_Name);
        if (position == 0){
            Button tv = helper.getView(R.id.tv);
            tv.setSelected(true);
        }
    }
}
